using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._LocationReferencingTools
{
    /// <summary>
    /// <para>Generate Events</para>
    /// <para>Re-creates shapes for event features registered with an LRS Network.</para>
    /// <para>为注册到 LRS 网络的事件要素重新创建形状。</para>
    /// </summary>    
    [DisplayName("Generate Events")]
    public class GenerateEvents : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GenerateEvents()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_event_layer">
        /// <para>Event Layer</para>
        /// <para>The event for which shapes will be regenerated.</para>
        /// <para>将为其再生形状的事件。</para>
        /// </param>
        public GenerateEvents(object _in_event_layer)
        {
            this._in_event_layer = _in_event_layer;
        }
        public override string ToolboxName => "Location Referencing Tools";

        public override string ToolName => "Generate Events";

        public override string CallName => "locref.GenerateEvents";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_event_layer, _out_event_layers];

        /// <summary>
        /// <para>Event Layer</para>
        /// <para>The event for which shapes will be regenerated.</para>
        /// <para>将为其再生形状的事件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Event Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_event_layer { get; set; }


        /// <summary>
        /// <para>Output Event Layers</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Event Layers")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_event_layers { get; set; }


        public GenerateEvents SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}